import config from "@/config"
import http from "@/utils/request"

export default {

	// 产业地图-产业画像-科技创新
	industryArchive: {


		// 获取最新更新时间
		getIciConfig: {
			url: `${config.API_URL}/get/iciConfig/getConfig`,
			name: "获取最新更新时间",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 轨道交通领域科技创新机构
		getIciIndustryChainTendencyInnovateList: {
			url: `${config.API_URL}/icipark/iciIndustryChainTendencyInnovate/list`,
			name: "轨道交通领域科技创新机构",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 轨道交通领域知识产权趋势
		getIciIndustryChainTendencyKnowledge: {
			url: `${config.API_URL}/icipark/iciIndustryChainTendencyKnowledge/list`,
			name: "轨道交通领域知识产权趋势",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 轨道交通领域技术标准趋势
		getIciIndustryChainTendencyTechnologyList: {
			url: `${config.API_URL}/icipark/iciIndustryChainTendencyTechnology/list`,
			name: "轨道交通领域技术标准趋势",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 全国轨道交通企业注册资金分布情况
		getIciIndustryChainTrafficFund: {
			url: `${config.API_URL}/icipark/iciIndustryChainTrafficFund/list`,
			name: "全国轨道交通企业注册资金分布情况",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 全国轨道交通企业发展阶梯图
		getIciIndustryChainTrafficLadder: {
			url: `${config.API_URL}/icipark/iciIndustryChainTrafficLadder/list`,
			name: "全国轨道交通企业发展阶梯图",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 全国轨道交通企业分布情况
		getIciIndustryChainTrafficDistribution: {
			url: `${config.API_URL}/icipark/iciIndustryChainTrafficDistribution/list`,
			name: "全国轨道交通企业分布情况",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 产业链企业明细表
		getIciIndustryChainEnterpriseDetails: {
			url: `${config.API_URL}/icipark/IciIndustryChainEnterpriseDetails/list`,
			name: "产业链企业明细表",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 产业链企业树状图
		getIciIndustryChainLinkInfoTree: {
			// url: `${config.API_URL}/icipark/IciIndustryChainLinkInfo/selectIndustryChainLinkInfo`,
			url: `${config.ICI_URL}/icipark/IciIndustryChainLinkInfo/selectIndustryChainLinkInfo`,
			name: "产业链企业树状图",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},
		// 新产业链树状图
		getIciIndustryTreeV2: {
			// url: `${config.EP_URL}//api/industry/tree/v2`,
			url: `${config.EP_URL}/api/industry/tree/v1`,
			name: "新产业链树状图",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},
		// 新的产业链企业树状图
		getIciIndustryLinkTree: {
			url: `${config.EP_URL}/api/industry/link/tree`,
			name: "新的产业链企业树状图",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},
		// 企业列表
		getIndustryCompanyInfo: {
			url: `${config.EP_URL}/api/industry/company/info`,
			name: "企业列表",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},
		// 产业链发展能力评价
		getIciIndustryChainEvaluation: {
			url: `${config.API_URL}/icipark/industryChainCompute/get/`,
			name: "产业链发展能力评价",
			get: async function (params) {
				return await http.get(this.url + params.uuid, {});
			}
		},

		// 产业链政策地图列表
		getIndustryChainPolicyMapList: {
			url: `${config.API_URL}/get/iciIndustryChainPolicyMap/getIndustryChainPolicyMapList`,
			name: "产业链政策地图列表",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},
		getIndustryChainPolicyMapCountByProvince: {
			url: `${config.API_URL}/get/iciIndustryChainPolicyMap/getIndustryChainPolicyMapCountByProvince`,
			name: "",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},


		// 产业链企业地图列表
		getIndustryChainEnterpriseMapList: {
			url: `${config.API_URL}/get/iciIndustryChainEnterpriseMap/getIndustryChainEnterpriseMapList`,
			name: "产业链企业地图列表",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},
		getIndustryChainEnterpriseMapCountByProvince: {
			url: `${config.API_URL}/get/iciIndustryChainEnterpriseMap/getIndustryChainEnterpriseMapCountByProvince`,
			name: "",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 全国百强大模型
		getIndustryChainLlmTop100List: {
			url: `${config.API_URL}/get/iciIndustryChainLlmTop100/getIndustryChainLlmTop100List`,
			name: "全国百强大模型",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 2022年全国人工智能企业综合实力排行TOP100排行榜列表
		getIndustryChainLlmEnterpriseTop100List: {
			url: `${config.API_URL}/get/iciIndustryChainLlmEnterpriseTop100/getIndustryChainLlmEnterpriseTop100List`,
			name: "2022年全国人工智能企业综合实力排行TOP100排行榜列表",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 国内chatGPT大模型企业及产品列表
		getIndustryChainLlmProductList: {
			url: `${config.API_URL}/get/iciIndustryChainLlmProduct/getIndustryChainLlmProductList`,
			name: "国内chatGPT大模型企业及产品列表",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 获国家批准正式上线大模型名单
		getIndustryChainLlmLicenseEnterpriseList: {
			url: `${config.API_URL}/get/iciIndustryChainLlmLicenseEnterprise/getIndustryChainLlmLicenseEnterpriseList`,
			name: "获国家批准正式上线大模型名单",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// SuperCLUE中文大模型排行榜
		getIndustryChainLlmSuperclueChineseList: {
			url: `${config.API_URL}/get/iciIndustryChainLlmSuperclueChinese/getIndustryChainLlmSuperclueChineseList`,
			name: "SuperCLUE中文大模型排行榜",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 2023年7月SuperCLUE基础能力榜单
		getIndustryChainLlmSuperclueBaseList: {
			url: `${config.API_URL}/get/iciIndustryChainLlmSuperclueBase/getIndustryChainLlmSuperclueBaseList`,
			name: "2023年7月SuperCLUE基础能力榜单",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

		// 2023年7月SuperCLUE中文特性榜单
		getIndustryChainLlmSuperclueChineseTestList: {
			url: `${config.API_URL}/get/iciIndustryChainLlmSuperclueChineseTest/getIndustryChainLlmSuperclueChineseTestList`,
			name: "2023年7月SuperCLUE中文特性榜单",
			get: async function (params) {
				return await http.get(this.url, params);
			}
		},

        // 2023年7月SuperCLUE开源榜单
        getIndustryChainLlmSuperclueOpensourceList:{
            url: `${config.API_URL}/get/iciIndustryChainLlmSuperclueOpensource/getIndustryChainLlmSuperclueOpensourceList`,
            name: "2023年7月SuperCLUE开源榜单",
            get: async function (params) {
                return await http.get(this.url,params);
            }
        },
    },
    getIndustryChainLinkCompany:{
        url: `${config.API_URL}/get/chainlink/getIndustryChainLinkCompany`,
        name: "",
        get: async function (params) {
            return await http.get(this.url,params);
        }
    },

    getIndustryChainLinkInfo:{
        url: `${config.API_URL}/get/chainlink/getIndustryChainLinkInfo`,
        name: "",
        get: async function (params) {
            return await http.get(this.url,params);
        }
    },
	// 获取行政区域
	getPortrait:{
		url: `${config.EP_URL}/api/park/portrait/ad`,
		name: "",
		get: async function (params) {
			return await http.get(this.url,params);
		}
	},
	industryPanorama:{
		// 获取产业全景-高质量发展-评分
		getCore:{
			url: `${config.EP_URL}/api/industry/view/develop/score`,
			name: "",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},
		getViewDevelop:{
			url: `${config.EP_URL}/api/industry/industry/view/develop/overview`,
			name: "",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},
		getTree:{
			url: `${config.EP_URL}/api/industry/view/develop/tree`,
			name: "",
			get: async function () {
				return await http.get(this.url);
			}
		},
		getRank:{
			url: `${config.EP_URL}/api/industry/view/develop/ranking`,
			name: "",
			get: async function () {
				return await http.get(this.url);
			}
		},

	},
	productivity:{
		getCore:{
			url: `${config.EP_URL}/api/industry/view/quality/score`,
			name: "",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},
		getViewDevelop:{
			url: `${config.EP_URL}/api/industry/view/quality/overview`,
			name: "",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},
		getTree:{
			url: `${config.EP_URL}/api/industry/view/quality/target/tree`,
			name: "",
			get: async function () {
				return await http.get(this.url);
			}
		},
		getRank:{
			url: `${config.EP_URL}/api/industry/view/quality/ranking`,
			name: "",
			get: async function () {
				return await http.get(this.url);
			}
		},
	},
	// 产业树

	// 全景-基础信息
	getInfo:{
		url: `${config.EP_URL}/api/industry/view/info`,
		name: "",
		get: async function (params) {
			return await http.get(this.url);
		}
	},
	// 树
	getTree:{
		url: `${config.EP_URL}/api/industry/tree/v1`,
		name: "",
		get: async function (params) {
			return await http.get(this.url,params);
		}
	},
	getTreeV2:{
		url: `${config.EP_URL}/api/industry/tree/v2`,
		name: "",
		get: async function (params) {
			return await http.get(this.url,params);
		}
	},

	getNumber:{
		url: `${config.EP_URL}/api/industry/link/company/number`,
		name: "",
		get: async function (params) {
			return await http.get(this.url,params);
		}
	},

	gather:{
		getGather:{
			url: `${config.EP_URL}/api/industry/view/gather`,
			name: "",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		}

	},
	all:{
		getCompany:{
			url: `${config.EP_URL}/api/industry/view/company/count`,
			name: "",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},
		getCompInfo:{
			url: `${config.EP_URL}/api/industry/company/info`,
			name: "",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},
		collect:{
			url: `${config.EP_URL}/api/get/crm/collectTargetCustomer`,
			name: "",
			post: async function (data) {
				return await http.post(this.url,data,{headers: {'Content-Type': 'application/json'}});
			}
		},
		saveCollectCompany:{
			url: `${config.API_URL}/api/company/saveCollectCompany`,
			name: "收藏企业",
			post: async function (data) {
				// return await http.postByContentType( this.url, data, {headers: {'Content-Type': 'application/json;charset=UTF-8'}});
				return await http.post(this.url, data, {headers: {}});
			}
		},
		// 取消收藏
		updateCollectCompany:{
			url: `${config.API_URL}/api/company/updateCollectCompany`,
			name: "取消收藏",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},
		// 企业是否被收藏
		queryCollectCompany:{
			url: `${config.API_URL}/api/company/queryCollectCompany`,
			name: "企业是否被收藏",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},

		//收藏到目标客户池
		saveCollectCompanyTarget:{
			url: `${config.API_URL}/get/crm/collectTargetCustomer`,
			name: "收藏到目标客户池",
			post: async function (data) {
				// return await http.postByContentType( this.url, data, {headers: {'Content-Type': 'application/json;charset=UTF-8'}});
				return await http.post(this.url, data, {headers: {}});

			}
		},
		// 企业是否被添加到目標客戶池
		queryTargetCustomerIsPool:{
			url: `${config.API_URL}/get/crm/getCollectTargetCustomerIsPool`,
			name: "企业是否被添加到目標客戶池",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},
		// 企业从目標客戶池移除
		cancelCollectTargetCustomerIsPool:{
			url: `${config.API_URL}/get/crm/cancelCollectTargetCustomerIsPool`,
			name: "企业从目標客戶池移除",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},



	}

}
